﻿using System;

namespace HamcoWcs.Models.Exceptions
{
    public class WcsRunException : Exception
    {
        public int Code { get; set; }
        public string UnitId { get; set; }
        public WcsRunException(string unitId, string message) : this(unitId, message, 0)
        {

        }

        public WcsRunException(string unitId, string message, int code) : base(message)
        {
            UnitId = unitId;
            Code = code;
        }
    }

    public class SrmNotFoundEmptyException : Exception
    {
        public SrmNotFoundEmptyException()
        {
        }

        public SrmNotFoundEmptyException(string message) : base(message)
        {
        }
    }
}
